package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entity.Brand;

import java.util.List;

public interface BrandService extends IService<Brand> {
    PageDTO<BrandDTO> queryBrandByPage(Integer page, Integer rows, String key);

    List<BrandDTO> queryBrandByCategory(Long id);
    /**
     * 新增品牌和中间表数据
     * @param brand 品牌的DTO
     */
    void saveBrand(BrandDTO brand);

    void updateBrand(BrandDTO brandDTO);

    void deleteBrandById(Long id);
}